﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="PostInfo.aspx.cs" Inherits="LogisticsWebApp.PostInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table style="width: 100%;">
    <tr>
      <td>信息类型：</td>
      <td>
        <asp:RadioButtonList ID="infoType" runat="server" RepeatDirection="Horizontal">
          <asp:ListItem Selected="True">提供服务</asp:ListItem>
          <asp:ListItem>寻求服务</asp:ListItem>
          <asp:ListItem>紧急需求</asp:ListItem>
        </asp:RadioButtonList>
      </td>
    </tr>
    <tr>
      <td>服务名称：</td>
      <td>
        <asp:TextBox ID="serviceName" runat="server" Width="218px"></asp:TextBox></td>
    </tr>
    <tr>
      <td>服务所属类目：</td>
      <td>
        <asp:DropDownList ID="categoryId" runat="server" 
          DataSourceID="categoryDataSource" DataTextField="CategoryName" 
          DataValueField="CategoryID">
        </asp:DropDownList>
      </td>
    </tr>
    <tr>
      <td>信息标题：</td>
      <td><asp:TextBox ID="title" runat="server" Width="223px"></asp:TextBox></td>
    </tr>
    <tr>
      <td>信息有效期：</td>
      <td>
        <asp:RadioButtonList ID="exipre" runat="server" RepeatDirection="Horizontal">
          <asp:ListItem Selected="True">10天</asp:ListItem>
          <asp:ListItem>20天</asp:ListItem>
          <asp:ListItem>1个月</asp:ListItem>
          <asp:ListItem>3个月</asp:ListItem>
          <asp:ListItem>6个月</asp:ListItem>
        </asp:RadioButtonList>
      </td>
    </tr>
    <tr>
      <td>详细说明</td>
      <td>
        <asp:TextBox ID="details" runat="server" TextMode="MultiLine" Height="161px" 
          Width="232px"></asp:TextBox></td>
    </tr>
    <tr>
      <td>上传图片：</td>    
      <td>
        <asp:ImageMap ID="ImageMap1" runat="server" Height="16px">
        </asp:ImageMap>
        <asp:ImageMap ID="ImageMap2" runat="server" Height="16px">
        </asp:ImageMap>
        <asp:ImageMap ID="ImageMap3" runat="server" Height="16px">
        </asp:ImageMap>               
     </td>
    </tr>
    <tr>
      <td>商业服务：</td>
      <td>        
        <asp:CheckBox ID="isCommercial" runat="server" Text="是商业服务"  Checked="true"/>
    </tr>
    <tr>
      <td colspan="2">
        <asp:Button ID="submit" runat="server" Text="同意服务条款，我要发布" 
          onclick="submit_Click" /></td>
    </tr>
  </table>
  
  <asp:SqlDataSource ID="categoryDataSource" runat="server" 
    ConnectionString="<%$ ConnectionStrings:logistics %>" 
    SelectCommand="SELECT [CategoryID], [CategoryName] FROM [Categories]"></asp:SqlDataSource>
</asp:Content>
